<template>
  <div class="head">
    <div class="search">
      <i class="iconfont icon-jiantouarrow487"></i>
      <div class="input">
        <i class="iconfont icon-sousuo"></i>
        <span>输入游玩的景点和城市</span>
      </div>
      <router-link tag="div" to="/city">
        <div class="city">{{this.$store.state.city}}</div>
      </router-link>
    </div>
  </div>
</template>
<script>
export default {
  name: "HomeHead"
};
</script>
<style lang="scss" scoped>
@import "../../../assets/style/scss/global";
.search {
  background: color(bg);
  padding: 10px 30px 10px 10px;
  display: flex;
  justify-content: space-between;
  line-height: 40px;
  height: 40px;
  .icon-jiantouarrow487,
  .city {
    color: #fff;
  }
  .input {
    background: #fff;
    border-radius: 10px;
    width: 200px;
    padding: 0 10px;
    font-size: 16px;
    color: #aaa;
    i {
      margin-right: 10px;
    }
  }
  .city {
    position: relative;
  }
  .city::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #fff;
    position: absolute;
    top: 18px;
    right: -15px;
    z-index: 100;
  }
}
</style>
